-
Notifications
You must be signed in to change notification settings - Fork 277
Minor java loading changes to support alternative loading strategies #5107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor java loading changes to support alternative loading strategies #5107
Conversation
src/goto-programs/lazy_goto_model.h
Outdated
@@ -243,6 +243,12 @@ class lazy_goto_modelt : public abstract_goto_modelt | |||
return goto_functions.at(id); | |||
} | |||
|
|||
goto_functionst::goto_functiont &get_goto_function_writable( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⛏️ Given your commit message:
place entirely before symex it's ok if you're careful.
Probably worth doxygen comment explaining this danger (and if possible a check that symex hasn't begun??)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should add the comment Thomas asked for
These never needed to be mutable. Making them const means that they can be used from contexts where the symbol table is const.
e2ee53b
to
74aa09b
Compare
Codecov Report
@@ Coverage Diff @@
## develop #5107 +/- ##
========================================
Coverage 66.95% 66.95%
========================================
Files 1145 1145
Lines 93650 93650
========================================
Hits 62699 62699
Misses 30951 30951
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
Passed Diffblue compatibility checks (cbmc commit: 74aa09b).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/128496241
74aa09b
to
22dc0f5
Compare
I have now removed the second commit from this PR, as the code which needs a writable reference to a goto function should be called from the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
Passed Diffblue compatibility checks (cbmc commit: 22dc0f5).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/128785171
These minor changes to loading interfaces in a couple of places support the use of alternative loading strategies in downstream repositories.